]> dgit.raspbian.org Git - gnome-shell.git/commit
shell-app: Never allow opening new windows while an app is starting
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 1 Aug 2019 15:22:50 +0000 (17:22 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 18 Sep 2019 17:14:16 +0000 (17:14 +0000)
commit00e95de1148296fbf6f1eece0552cfd07242ac44
tree87b9deb58a71fc83f504edc8364938fed78d5275
parent942758bb3082f573a2517f7601a1fdb3e5e4bfe5
shell-app: Never allow opening new windows while an app is starting

We allow opening new windows as a fallback in case the app doesn't give
us explicit information about it, but we don't want to allow opening new
windows if we're unable to ask for this information (we can only use the
APIs to get this information while the app is RUNNING).

So always return FALSE in case the app is STARTING, always return TRUE
in case the app is STOPPED (starting an app always opens a new window)
and go through the usual checks in case the app is RUNNING (and
eventually fall back to FALSE).

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/121
src/shell-app.c